#ifndef __SPACEDOTS_H__
#define __SPACEDOTS_H__
#include <SDL/SDL.h>
#include "config.h"

/*! \brief Star background
 *
 * Space dots are harmless background items All are active. When one
 * falls off the edge, another is created at the start.
 */
struct spacedot {
  float x, dx;
  int y;
  RD_VIDEO_TYPE color;
};

/*! \brief Initialise space dots.
 *
 * \param surf_screen The surface which is displayed.
 */
void init_space_dots(SDL_Surface * surf_screen);


/*! \brief Draw the background
 *
 * This draws the background space dots and updates the coordinates at
 * the same time.
 *
 * \param s Surface to draw on.
 */
void draw_space_dots(SDL_Surface * s);


#endif
